home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / boot / hdenv13.lha / HDEnv / _main.c next >
C/C++ Source or Header  |  1995-08-24  |  598b  |  24 lines

  1. /*************************************************************************
  2.  
  3.     _main.c 1.0 (24.8.95)
  4.     by Michael Fedrowitz <mfedrowi@ix.urz.uni-heidelberg.de>
  5.     Public Domain
  6.  
  7.     Replacement for the SAS/C(tm) __main() function without any argument
  8.     parsing. Saves some hundred bytes in programs, which either take no
  9.     commandline arguments or use ReadArgs() for argument parsing.
  10.  
  11. **************************************************************************/
  12.  
  13. #include <stdlib.h>
  14.  
  15. extern int main(void);
  16.  
  17. void __stdargs __main(char *line)
  18. {
  19.     int rc;
  20.  
  21.     rc = main();
  22.     exit(rc);
  23. }
  24.